package cn.hejx.springboot.controller;

import cn.hejx.remoteapi.IMessage;
import cn.hejx.remoteapi.vo.Person;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by 追风少年
 *
 * @email doubihah@foxmail.com
 * @create 2017-07-07 11:25
 **/
@RestController
public class MessageController {

    @Resource
    private IMessage iMessage;

    @RequestMapping("/info")
    public String info(String msg){
        Person person = iMessage.getPerson("网易");
        System.out.println(person);
        return this.iMessage.echo(msg);
    }

}
